package edu.yzu.testspringboot002.common.constant;

/**
 * 功能描述 活动报名常量
 * 活动状态,字段类型,表单类型等
 *
 * @author x1ao
 * @date 2023/11/11 14:51
 */
public interface EnrollConstants {

    String STATE_NORMAL = "1";
    String STATE_DISABLE = "0";

    String ID_FIELD = "id";

    interface Status {
        /**
         * 未开始
         */
        int NOT_START = 0;
        /**
         * 进行中
         */
        int IN_PROGRESS = 1;
        /**
         * 已结束
         */
        int END = 2;
    }

    /**
     * 表单类型(input:输入框,date:日期输入框,select:下拉选择,radio:单选,checkbox:多选,text:文字)
     */
    interface FormType {
        String TEXT = "text";
        String INPUT = "input";
        String DATE = "date";
        String SELECT = "select";
        String RADIO = "radio";
        String CHECKBOX = "checkbox";
        String LIST = "list";
        String AREA = "area";
        String AREA2 = "area_2";
        String MUTI_FILE = "muti_file";
    }

    /**
     * 字段类型(str:字符串,number:数字,date:日期)
     */
    interface ColumnType {
        String VARCHAR = "varchar";
        String DATETIME = "datetime";
        String INT = "int";
        String DOUBLE = "double";

        String JSON = "json";
    }

}
